package com.sun.module_hot.net

import com.sun.module_base.network.NetworkApi
import com.sun.module_common.config.BASE_URL
import com.sun.module_hot.model.Hotkey
import com.sun.module_network.HttpResult
import retrofit2.http.GET

/**
 *@author:sunc
 *@time :2025/7/30 15:56
 *@desc: 描述
 */
interface ApiService {
    companion object {
        fun getInstance(): ApiService {
            return NetworkApi.INSTANCE.getApi(ApiService::class.java, BASE_URL)
        }
    }

    //搜索热词
    @GET("/hotkey/json")
    suspend fun getHotkeys(): HttpResult<MutableList<Hotkey>>
}